import request from '@/utils/request'

// 获取所有角色列表
export const getRolesListRequest = params => request.get('/sys/role', { params })

// 添加角色
export const addRolesRequest = data => request.post('/sys/role', data)

// 编辑角色
export const editRolesRequest = data => request.put(`/sys/role/${data.id}`, data)

// 删除角色
export const deleteRolesRequest = id => request.delete(`/sys/role/${id}`)
